//
//  SRMe+Cate.h
//  SportRing
//
//  Created by Apple on 14/10/27.
//  Copyright (c) 2014年 HotOne. All rights reserved.
//

#import "SRMe.h"

@interface SRMe (Cate)

+ (void)setCurrentUser:(SRMe *)user;

+ (SRMe *)currentUser;

+ (SRMe *)userWithName:(NSString *)name password:(NSString *)password;

- (void)configAttributesWithBlock:(void(^)(SRMe * meSelf))block;

- (void)setAvatarUrl:(NSString *)url;

@end

@interface SRMe (Find)

+ (SRMe *)findUserByName:(NSString *)name;

+ (SRMe *)findUserAndCreateIfNotExistByName:(NSString *)name;

- (CGFloat)allDistance;

- (NSInteger)allSteps;

- (CGFloat)allCalorie;

@end